home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / software / radiance / ez3d / win95nt / data.z / spotLightDragger.iv < prev    next >
Text File  |  1996-05-02  |  4KB  |  161 lines

  1. #Inventor V2.0 ascii
  2.  
  3. DEF spotLightOverallMaterial       Material {
  4.     diffuseColor    [ 0.5 0.5 0.5 ]
  5.     emissiveColor    [ 0.5 0.5 0.5 ]
  6. }
  7.  
  8. DEF SPOT_LIGHT_DRAGGER_LINE_TRANSLATOR Group {
  9.  
  10.     LightModel { model PHONG }
  11.     Texture2 {}
  12.  
  13.     Complexity { value 0.3 }
  14.     Rotation { rotation 0 0 1 1.57079 }
  15.     Complexity { value .3 }
  16.     Cylinder { height 3.0 radius 0.2 }
  17. }
  18.  
  19. DEF spotLightTranslatorLineTranslator Separator {
  20.     renderCaching ON
  21.     Material {
  22.     diffuseColor    [ 0.5 0.5 0.5 ]
  23.     emissiveColor    [ 0.5 0.5 0.5 ]
  24.     }
  25.     DrawStyle { lineWidth 2 }
  26.     USE SPOT_LIGHT_DRAGGER_LINE_TRANSLATOR
  27. }
  28. DEF spotLightTranslatorLineTranslatorActive Separator {
  29.     renderCaching ON
  30.     Material {
  31.     diffuseColor    [ 0.5 0.5 0.0 ]
  32.     emissiveColor    [ 0.5 0.5 0.0 ]
  33.     }
  34.     DrawStyle { lineWidth 3 }
  35.     USE SPOT_LIGHT_DRAGGER_LINE_TRANSLATOR
  36. }
  37.  
  38. DEF SPOT_LIGHT_DRAGGER_PLANE_TRANSLATOR Group {
  39.  
  40.     LightModel { model PHONG }
  41.     Texture2 {}
  42.     PickStyle { style UNPICKABLE }
  43.  
  44.     Complexity { value 0.3 }
  45.     Sphere { radius 1.0 }
  46.  
  47.  
  48.     # Rays of light emanating from sphere
  49.  
  50.     PickStyle { style UNPICKABLE }
  51.  
  52.     NormalBinding { value PER_VERTEX_INDEXED }
  53.     MaterialBinding { value OVERALL }
  54.     Coordinate3 { point [   1.0608  1.0608 0, 1.326  1.326 0,
  55.                -1.0608 -1.0608 0,-1.326 -1.326 0, 
  56.                -1.0608  1.0608 0,-1.326  1.326 0,
  57.                 1.0608 -1.0608 0, 1.326 -1.326 0,
  58.  
  59.                            0  1.0608  1.0608, 0  1.326  1.326,
  60.                0 -1.0608 -1.0608, 0 -1.326 -1.326, 
  61.                0 -1.0608  1.0608, 0 -1.326  1.326,
  62.                0  1.0608 -1.0608, 0  1.326 -1.326,
  63.  
  64.                             1.0608 0  1.0608, 1.326 0  1.326,
  65.                -1.0608 0 -1.0608,-1.326 0 -1.326, 
  66.                -1.0608 0  1.0608,-1.326 0  1.326,
  67.                 1.0608 0 -1.0608, 1.326 0 -1.326 ] }
  68.     LineSet { numVertices [ 2, 2, 2, 2, 
  69.                 2, 2, 2, 2, 
  70.                 2, 2, 2, 2 ] }
  71. }
  72.  
  73. DEF spotLightTranslatorPlaneTranslator Separator {
  74.     renderCaching ON
  75.     DrawStyle { lineWidth 2 }
  76.     USE SPOT_LIGHT_DRAGGER_PLANE_TRANSLATOR
  77. }
  78. DEF spotLightTranslatorPlaneTranslatorActive Separator {
  79.     renderCaching ON
  80.     Material {
  81.     diffuseColor    [ 0.5 0.5 0.0 ]
  82.     emissiveColor    [ 0.5 0.5 0.0 ]
  83.     }
  84.     DrawStyle { lineWidth 3 }
  85.     USE SPOT_LIGHT_DRAGGER_PLANE_TRANSLATOR
  86. }
  87.  
  88. DEF SPOT_LIGHT_DRAGGER_ROTATOR Group {
  89.  
  90.     DrawStyle { lineWidth 2 }
  91.     LightModel { model PHONG }
  92.     Texture2 {}
  93.  
  94.     NormalBinding { value PER_VERTEX_INDEXED }
  95.     MaterialBinding { value OVERALL }
  96.     Coordinate3 { point [ 0 0 -1, 0 0 -10 ] }
  97.     LineSet {}
  98.  
  99.     Complexity { value 0.3 }
  100.     Translation { translation 0 0 -10 }
  101.     RotationXYZ { axis X angle -1.57079 }
  102.     Cone { height 2 bottomRadius 1 }
  103.  
  104.     Translation { translation 0 -12 0 }
  105.     Cone { height 2 bottomRadius .1 }
  106. }
  107.  
  108. DEF spotLightRotatorRotator Separator {
  109.     renderCaching ON
  110.     Material {
  111.     diffuseColor    [ 0.5 0.5 0.5 ]
  112.     emissiveColor    [ 0.5 0.5 0.5 ]
  113.     }
  114.     USE SPOT_LIGHT_DRAGGER_ROTATOR
  115. }
  116. DEF spotLightRotatorRotatorActive Separator {
  117.     renderCaching ON
  118.     Material {
  119.     diffuseColor    [ 0.5 0.5 0.0 ]
  120.     emissiveColor    [ 0.5 0.5 0.0 ]
  121.     }
  122.     USE SPOT_LIGHT_DRAGGER_ROTATOR
  123. }
  124.  
  125. # These are not used in this dragger. We 'zero them out'
  126. DEF spotLightRotatorFeedback Separator {
  127. }
  128. DEF spotLightRotatorFeedbackActive Separator {
  129. }
  130.  
  131. DEF SPOT_LIGHT_DRAGGER_BEAM Group {
  132.  
  133.     LightModel { model PHONG }
  134.     Texture2 {}
  135.  
  136.     Separator {
  137.     RotationXYZ { axis X angle 1.57079 }
  138.     Translation { translation 0 -1 0 }
  139.     Cone { height 2.0 bottomRadius 2.0 }
  140.     }
  141. }
  142.  
  143. DEF spotLightBeam Separator {
  144.     renderCaching ON
  145.     DrawStyle { style LINES lineWidth 2 }
  146.     USE SPOT_LIGHT_DRAGGER_BEAM
  147. }
  148. DEF spotLightBeamActive Separator {
  149.     renderCaching ON
  150.     Material {
  151.     diffuseColor    [ 0.5 0.5 0.0 ]
  152.     emissiveColor    [ 0.5 0.5 0.0 ]
  153.     }
  154.     DrawStyle { style LINES lineWidth 3 }
  155.     USE SPOT_LIGHT_DRAGGER_BEAM
  156. }
  157.  
  158. DEF spotLightBeamPlacement Translation {
  159.     translation 0 0 -1
  160. }
  161.